

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.TicketScheduleEnables
{
    public class TicketScheduleEnableCfg : IEntityTypeConfiguration<TicketScheduleEnable>
    {
        public void Configure(EntityTypeBuilder<TicketScheduleEnable> builder)
        {

            builder.ToTable("TicketScheduleEnables", YoYoAbpefCoreConsts.SchemaNames.Ticket);

            
			builder.Property(a => a.ScheduleId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.Schedule).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.TicketPriceId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.IsEnabled).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64).HasDefaultValue(1);


        }
    }
}


